package com.example.demo.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)

@NoArgsConstructor
public class ProCateRel implements Serializable{
    @Serial
    private static final long serialVersionUID = 1L;

@TableId(type = IdType.AUTO)
    private Long id;

    private Long productId;

    private Long categoryId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public ProCateRel(Long productId, Long cid) {
        this.productId = productId;
        this.categoryId = cid;
    }
}
